<?php

//Registrar Scripts
function cargarScripts() {

    wp_register_script('jquery2', get_template_directory_uri() . '/js/1.5.1/jquery.min.js', true);
    wp_register_script('pie', get_template_directory_uri() . '/js/PIE.js', true);
    wp_register_script('custom_animations', get_template_directory_uri() . '/js/custom_animations.js', true);
    wp_register_script('custom_easing', get_template_directory_uri() . '/js/custom_easing.js', true);
    wp_register_script('jslider', get_template_directory_uri() . '/js/jSlider.js', true);

    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery2');
    wp_enqueue_script('pie');
    wp_enqueue_script('custom_animations');
    wp_enqueue_script('custom_easing');
    wp_enqueue_script('jslider');
}

add_action('wp_footer', 'cargarScripts');



/* ----------------------------------------------------------------------------------- */
/* 	Registrar Menus WP3.0+
  /*----------------------------------------------------------------------------------- */
if (function_exists('register_nav_menus')) { //To add support for navigation menus
    register_nav_menus(
            array(
                'MenuPrincipal' => __('Menu Principal'),
                'MenuFooter' => __('Munu Footer')
            )
    );
}

/* * ******************************************************************************************************************************* */
/* 	Configurar Imágenes Thumbnails WP2.9+
  /********************************************************************************************************************************* */
if (function_exists('add_theme_support')) {
    add_theme_support('post-thumbnails');
    add_image_size('video-thumbnail', 66, 56, true); // Category list thumbnails
    add_image_size('index-thumbnail', 220, 180, true);
    add_image_size('slider-thumbnail', 940, 474, true);
    add_image_size('blog-thumbnail', 0, 0, true);
    add_image_size('press-blog-thumbnail', 300, 0, true);
    add_image_size('partners-thumbnail', 290, 0, true);
    add_image_size('corporate-partners-thumbnail', 84, 0, true);
    add_image_size('slider-home-thumbnail', 0, 474, true);
}
?>